<?php
/* @var $this LogController */
/* @var $model Log */

$this->breadcrumbs=array(
	'Logs'=>array('index'),
	$model->id,
);

if ((Yii::app()->user->type==="Admin")) {
$this->menu=array(
        array('label'=>'Manage', 'url'=>array('admin')),
        array('label'=>'List', 'url'=>array('index')),
        array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
        array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
        //array('label'=>'Create', 'url'=>array('create')),
);
}else if((Yii::app()->user->type==="Manager")){
$this->menu=array(
        array('label'=>'Manage', 'url'=>array('admin')),
        array('label'=>'List', 'url'=>array('index')),
        array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
      //  array('label'=>'Create', 'url'=>array('create')),
        );
}else {
$this->menu=array(
        array('label'=>'Manage', 'url'=>array('admin')),
        array('label'=>'List', 'url'=>array('index')),
        );
        }

?>

<h1>View Log #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'description',
		'date_time',
		'employee_id',
	),
)); ?>
